module PaymentHelper
  def count_update(params,i)
    if params[i.name]
      good = GoodsInventory.find_by_name(i.name)
      good.update(:count => params[i.name])
    end
  end
end